sum = 0
sum2 = 0
for n in range(1, 101):
    sum2 += n**2
    sum += n
result = sum**2 - sum2
print result